home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 434 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  30 lines

  1. Newsgroups: comp.lang.c++
  2. Path: munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
  4. Subject: Re: Exception and what to put into them
  5. Message-ID: <9600501.20425@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU (CS-Usenet)
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <49i7hh$aco@news1.mclink.it> <4an868$def@newsbf02.news.aol.com> <4cg7kr$9iq@dub-news-svc-6.compuserve.com>
  9. Date: Thu, 4 Jan 1996 14:35:49 GMT
  10.  
  11. 100754.2730@compuserve.com (Martin Aupperle) writes:
  12.  
  13. >dstkelley@aol.com (Dstkelley) wrote:
  14. >
  15. >>It is my humble opinion that logging the line number of where the
  16. >>exception occured is short sided thinking.  [...]
  17. [...]
  18. >Using class names/function names instead is much more effort since the
  19. >necessary strings cannot be generated automatically.
  20.  
  21. Sure they can - at least if your compiler supports it.
  22. In GNU C++ you can use __FUNCTION__ or __PRETTY_FUNCTION__
  23. in the same way that you can use __LINE__.
  24.  
  25. There is some chance that something like this may be standardized in C9X.
  26.  
  27. --
  28. Fergus Henderson                 WWW: http://www.cs.mu.oz.au/~fjh
  29. fjh@cs.mu.oz.au                  PGP: finger fjh@128.250.37.3
  30.